/*
 When - HTML5 scrolling calendar (https://code.google.com/p/when/)
 Based on: Continuous Calendar (http://madebyevan.com/calendar/) by Evan Wallace
 License: MIT License (see below)

 Copyright (c) 2010 Evan Wallace
 Copyright (c) 2014 Ovidiu Mara

 Permission is hereby granted, free of charge, to any person
 obtaining a copy of this software and associated documentation
 files (the "Software"), to deal in the Software without
 restriction, including without limitation the rights to use,
 copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the
 Software is furnished to do so, subject to the following
 conditions:

 The above copyright notice and this permission notice shall be
 included in all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/

#header {
	line-height: 27px;
	background: white;
	position: fixed;
	left: 0;
	right: 0;
	height: 27px;
	padding: 5px;
	text-align: center;
}

#header {
	top: 0;
	border-bottom: 2px solid black;
}

#footerRight {
	position: fixed;
	bottom: 0;
	right: 0;
	padding: 5px;
	text-align: center;
}

#timerBox {
	text-align: left;
	background: white;
	margin-bottom: 0.5em;
	width: 180px;
	border: none;
}

.timerspace td {
	line-height: 2px;
}

.countdown {
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
	font-weight: bold;
	text-align: right;
	vertical-align: top;
	max-width: 90px;
	margin-bottom: 20px;
	border-left: 1px solid black;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	cursor: pointer;
}

.countdownspace {
	width: 2px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	cursor: pointer;
}

.countdowntext {
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	border-right: 1px solid black;
	text-align: left;
	vertical-align: top;
	max-width:90px;
	cursor: pointer;
}

#help,
#export,
#import {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	background: black;
	background: rgba(0, 0, 0, 0.75);
}

#help > div,
#export > div,
#import > div {
	position: absolute;
	text-align: left;
	width: 500px;
	padding: 20px;
	color: black;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
	background: white;
	overflow-y: auto;
}

#exportText,
#importText {
	min-height: 200px;
	overflow-y: scroll;
}

#help ul,
#export ul,
#import ol {
	margin: 0;
	zpadding-left: 0;
	text-align: left;
	line-height: 15px;
	list-style-position: inside;
}

div > ul,
div > ol {
	padding-left: 0;
}

.key {
	font-family: monospace;
	background-color: #eee;
	border: solid 1px #ccc;
}

.buttonBox {
	text-align:right;
}

.boxTitle {
	font-weight: bold;
	padding-bottom: 1em;
}

a.button {
	display: inline-block;
	color: black;
	text-decoration: none;
	padding: 5px 15px;
	line-height: 15px;
	margin: 0 0 0 5px;
	border: 1px solid #999;
	border-radius: 4px;
	background: #EFEFEF;
	background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#DFDFDF));
}

a.button:active {
	background: #D7D7D7;
	background: -webkit-gradient(linear, left top, left bottom, from(#CFCFCF), to(#DFDFDF));
}

body, td {
	background: white;
	color: black;
	margin: 0;
	font: 12px sans-serif;
}

#header {
	visibility: collapse;
	z-index: 9999;
}

table {
	margin: 0 auto;
	border-spacing: 0 0;
	border-left: 1px solid black;
	border-top: 1px solid black;
	background: gray;
}

td.day {
	border-right: 1px solid black;
	border-bottom: 1px solid black;
	padding: 3px 15px 20px 3px;
	text-align: right;
	vertical-align: top;
	width: 120px;
	height: 100px;
	cursor: pointer;
	z-index:-9999;
	transition: background-color 200ms ease-in 0ms;
	transition: opacity 200ms ease-in 0ms;
}

.dayNumber {
	margin-right: -10px;
}

td.extra {
	padding: 3px 10px;
	text-align: left;
	border: none;
	font: bold 30px 'Arial Narrow', sans-serif;
	line-height: 33px;
	cursor: auto;
}

td.shaded {
	opacity: 0.9;
}

td.weekend {
	background-color: #ffe;
}

td.firstwithleft {
	border-left: 1px solid #37f;
}
td.firstweek {
	border-top: 1px solid #37f;
}
td.lastwithright {
	border-right: 2px solid #37f;
}
td.lastweek {
	border-bottom: 2px solid #37f;
}

td.today {
	border-left: 2px solid red;
	border-top: 2px solid red;
	border-right: 3px solid red;
	border-bottom: 3px solid red;
	border-radius: 6px;
	padding-top: 1px;
	width: 116px;
}

textarea {
	display: block;
	width: 100%;
	overflow: hidden;
	font: 12px sans-serif;
	margin: 3px 0 0 0;
	padding: 2px 5px 0 5px;
	border: 1px solid #5FAFFF;
	border-radius: 4px;
	resize: none;
}

textarea:focus {
	outline-color: #5FAFFF;
}

a:focus {
	outline: none;
}
